package com.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.blog.dao.ArticlePageViewMapper;
import com.blog.service.IArticlePageViewService;

@Service
@Transactional
public class ArticlePageViewImpl implements IArticlePageViewService{

	@Autowired
	ArticlePageViewMapper articlePageView;

	/**
	 * 添加文章浏览量(在文章发表时添加)
	 * @return
	 */
	@Override
	public int save(String id, Integer pageView) {
		return articlePageView.save(id, pageView);
	}

	/**
	 * 用户浏览时浏览量变动
	 */
	@Override
	public int change(String id) {
		return articlePageView.change(id);
	}
	
	
	
}
